﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EasyLinkerSDK.Common.Tools
{
    public class Time
    {
        #region Time

        /// <summary>
        /// 返回Unix时间戳
        /// </summary>
        /// <returns></returns>
        public static int Timestamp()
        {
            long unixTime = (DateTime.Now.ToUniversalTime().Ticks - 621355968000000000) / 10000000;
            return Convert.ToInt32(unixTime);
        }
        #endregion
    }
}
